<{include file="../common/iframe_header.tpl"}>

<table class="gridtable table table-bordered">
    <tr>
        <th width="20%">操作用户</th>
        <th width="5%">等级</th>
        <th width="10%">对标情况</th>
        <th width="35%">申诉意见</th>
        <th width="25%">操作时间</th>
        <th width="5%">附件</th>
    </tr>
    <{foreach $list as $key => $val}>
    <!--网点上下级操作列表-->
    <tr id="qb_<{$val.qb_id}>">
        <td><{$val.network_name}></td>
        <td><{if $level[$val.level]}><{$level[$val.level].desc}><{else}><{/if}></td>
        <{if $val.is_self==1}>
        <td><{if $val.isreturn==1}>申请还分<{elseif $val.isreturn==0}>不申请<{else}>未知<{/if}></td>
        <td style="word-wrap:break-word;word-break:break-all;line-height: 20px" title="<{$val.suggestion}>"><{$val.suggestion|msubstr:50}></td>
        <{else}>
            <td colspan="2" style="word-wrap:break-word;word-break:break-all;line-height: 20px"  title="<{$val.suggestion}>"><{$val.suggestion|msubstr:70}></td>
        <{/if}>
        <td><{$val.create_time}></td>
        <td><{if $val.haveattach}><a href="/webadmin/netQuestion/historyattach?nq_id=<{$val.nq_id}>&subject_id=<{$val.subject_id}>" target="_blank">查看</a><{/if}></td>
    </tr>
    <{/foreach}>
        <!-- 后台审核列表-->
    <{if $managelist}>
    <{foreach $managelist as $k => $v}>
    <tr style="background: #529EC6;">
        <td colspan="2"><{$v.truename}></td>
        <td><{if $v.isreturn>=0}>还<{$v.isreturn}>分<{else}>不还分<{/if}></td>
        <td><{$v.suggestion}></td>
        <td><{$v.create_time}></td>
        <td><a href="javascript:;" onclick="edit_huanfen(<{$v.qbm_id}>);">修改</a></td>
        </tr>
        <{/foreach}>
    <{/if}>
    <{if $list && !$managelist}>
    <tr><td colspan="6"><input type="button" onclick="huanfen(<{$nq_id}>,<{$subject_id}>);" class="button" value="还分" /> </td></tr>
    <{/if}>
</table>
<script>
//后台还分操作，网点的某个题目
function huanfen(nq_id,subject_id){
    $.layer({
        type: 2, 
        title: false,
        closeBtn: [1, true],
        shadeClose: true,
        offset: ['50px', ''],
        area: ['500px', '215px'],
        iframe: {src: '/webadmin/netQuestion/huanfen?nq_id='+nq_id+'&subject_id='+subject_id}
    });
}
//修改后台用户已经操作的还分操作
function edit_huanfen(qbm_id){
    $.layer({
        type: 2, 
        title: false,
        closeBtn: [1, true],
        shadeClose: true,
        offset: ['50px', ''],
        area: ['500px', '215px'],
        iframe: {src: '/webadmin/netQuestion/huanfen?qbm_id='+qbm_id}
    });
}
</script>
<{include file="../common/footer.tpl"}>